<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>余额</title>
    <link rel="stylesheet" href="../src/css/weui.css">
    <script src="../src/js/libs/jquery-3.0.0.min.js"></script>
    <script src="../src/js/main.js"></script>
    <script type="text/javascript" src="../src/js/H5ComponentPolyline.js"></script>
    <style type="text/css">
        /* 基本图文组件样式 */
        .h5_component{
            position: absolute;
            background-size: 100%;
            background-repeat: no-repeat;
            top: 19rem;
        }
        /* 折线图组件样式 */
        .h5_component_polyline canvas{
            position: absolute;
            left: 0;
            top:0;
            width: 100%;
            height: 100%;
            transform: translate3d(0,0,0);
            /*background: #dde2d2;*/
        }
        .h5_component_polyline .text{
            position: absolute;
            font-size: 1rem;
            text-align: center;
            transform:scale(1);
            color: #3b3b3b;
            opacity: 1;
        }

    </style>

    <style>
        body {
            font: 0.9375rem/1em "微软雅黑";
        }
        /* tab样式 */
        .navbar {
            box-sizing: border-box;
            height: 14.375rem;
            background: #4e90e6;
            padding: 1.3125rem;
            text-align: center;
            color: #ffffff;
        }
        .weui_navbar {
            background-color: #4e90e6;
        }
        .weui_navbar:after {
            border-bottom: 0;
        }
        .weui_navbar_item.weui_bar_item_on {
            background-color: #4e90e6;
            color: #ffffff;

        }
        .weui_navbar_item {
            display: inline-block;
            width: 6.5625rem;
            text-align: center;
            font-size: 0.9375rem;
            color: #b5ccf3;
        }

        /* tab内容样式 */
        .weui_tab_bd {
            overflow: visible;
            padding-bottom: 0;
        }
        .weui_tab_bd p:first-child {
            font-size: 2.25rem;
            margin-top: 1.9325rem;
        }
        .weui_tab_bd p.total-money {
            font-size: 0.75rem;
            margin-top: 2.59375rem;
        }
        .weui_tab_bd p.total-money span {
            display: block;
            font-size: 0.9375rem;
            margin-top: 0.6875rem;
        }

        /* 画布 */
        .canvas {
            /*position: relative;*/
        }
        .canvas .title {
            font-size: 0.9375rem;
            line-height: 3.84375rem;
            color: #000033;
            margin-left: 1.0625rem;
        }
        .canvas canvas {
            width: 20.375rem;
            height: 9.375rem;
            margin-left: 1.0625rem;
            margin-bottom: 5.375rem;
        }

        .button_area {
            position: absolute;
            left: 1.125rem;
            top: 30rem;
            font-size: 0;
            margin-bottom: 1.6rem;
            text-align: center;
        }

        .button_area > a {
            display: block;
            width: 20.25rem;
            font-size: 1.11rem;
            line-height: 2.5rem;
        }
    </style>
</head>
<body>
<div class="navbar">
    <div class="bd" style="height: 100%;">
        <div class="weui_tab">
            <div class="weui_navbar">
                <div class="weui_navbar_item weui_bar_item_on">
                    今日收益
                </div>
                <div class="weui_navbar_item">
                    昨日收益
                </div>
            </div>
            <div class="weui_tab_bd">
                <div class="weui_tab_bd_item " style="display: block;">
                    <p class="money">3656.81</p>

                    <p class="total-money">总金额
                        <span>16720.15</span></p>
                </div>
                <div class="weui_tab_bd_item " style="display: none;">
                    <p class="money">1236.81</p>

                    <p class="total-money">总金额
                        <span>13740.15</span></p>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="canvas">
    <div class="title">七日收益(千元)</div>
</div>

<div class="button_area">
    <a href="money-recharge.html" class="weui_btn weui_btn_primary">充值</a>
    <a href="money-take.html" class="weui_btn weui_btn_primary">提现</a>
</div>

<script type="text/javascript">
    /* 折现图 */
    $(function () {
        var cfg ={
            type:'polyline',
            data:[['1',1500,'#ff7676'],['2',2500],['3',1600,'blue'],['4',1900],['5',2400],['6',3200]],
            width:1000,
            height:500,
            center:true,
        }
        var h5=new H5ComponentPolyline('polyline',cfg);
        $('body').append(h5);
    })

</script>

</body>

</html>